package com.xomily.devops.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xomily.common.annotation.Excel;
import com.xomily.common.core.domain.BaseEntity;

/**
 * 进程日志对象 dev_program_log
 * 
 * @author xomily
 * @date 2021-11-29
 */
public class DevProgramLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 进程ID */
    @Excel(name = "进程ID")
    private Long programId;

    /** cpu使用率 */
    @Excel(name = "cpu使用率")
    private BigDecimal cpuRate;

    /** 内存使用率 */
    @Excel(name = "内存使用率")
    private BigDecimal memRate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProgramId(Long programId) 
    {
        this.programId = programId;
    }

    public Long getProgramId() 
    {
        return programId;
    }
    public void setCpuRate(BigDecimal cpuRate) 
    {
        this.cpuRate = cpuRate;
    }

    public BigDecimal getCpuRate() 
    {
        return cpuRate;
    }
    public void setMemRate(BigDecimal memRate) 
    {
        this.memRate = memRate;
    }

    public BigDecimal getMemRate() 
    {
        return memRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("programId", getProgramId())
            .append("cpuRate", getCpuRate())
            .append("memRate", getMemRate())
            .append("createTime", getCreateTime())
            .toString();
    }
}
